package com.chenfan.finance.dao;


import com.chenfan.finance.model.TocStockinOrderHeader;

import com.chenfan.finance.model.vo.TimeRange;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TocStockinOrderHeaderMapper {

    /**
     * 批量插入
     * @param list
     * @param taskYearMonth
     * @return
     */
    int insertList(@Param("list") List<TocStockinOrderHeader> list , @Param("taskYearMonth") LocalDateTime taskYearMonth);

    /**
     * 单条插入
     * @param record
     * @return
     */
    int insertSelective(TocStockinOrderHeader record);

    /**
     * 根据条件查询
     * @param tid
     * @param timeRange
     * @return
     */
    List<TocStockinOrderHeader> getListByTid(@Param("tid")String tid, @Param("timeRange")TimeRange timeRange);

    List<TocStockinOrderHeader> getListByIds(@Param("list")List<String> list,@Param("timeRange")TimeRange timeRange);
}
